package com.qianya.weishi_server.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.qianya.weishi_server.entity.Item;
import com.qianya.weishi_server.mapper.ItemMapper;
import java.util.List;
import com.qianya.weishi_server.service.ItemService;
@Service
public class ItemServiceImpl implements ItemService{

    @Resource
    private ItemMapper itemMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return itemMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Item record) {
        return itemMapper.insert(record);
    }

    @Override
    public int insertSelective(Item record) {
        return itemMapper.insertSelective(record);
    }

    @Override
    public Item selectByPrimaryKey(Integer id) {
        return itemMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Item record) {
        return itemMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Item record) {
        return itemMapper.updateByPrimaryKey(record);
    }

    @Override
    public int batchInsert(List<Item> list) {
        return itemMapper.batchInsert(list);
    }

}
